var eareRegister = function(){
    var json = {};
    json.name = $('.eareName').val();
    json.address = $('.address').val();
    json.state = $('.stateMsg').val();
    json.trools = $('.trools').val();
    json.startTime = $('.times').val().split('-')[0]
    json.finishTime = $('.times').val().split('-')[0]
    console.log($('.times').val().split('-'))
    $.ajax({
        url: "/rm/siteInfo/register",
        type:"post",
        dataType: 'json',
        data:json,
        success: function(result){
            if(result.status === 0){
                layer.msg(result.msg)

            }else{
                layer.msg(result.msg)
            }
        }, //处理完成
        error: function(res){

        },
        complete:function(){
            // layer.close(layerLoad);
        },
    });
}
